(function(){var h=void 0,j=!0,k=null,n=!1;function p(a){return function(){return this[a]}}var q,s=this;function u(a,b,c){a=a.split(".");c=c||s;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&v(b)?c[d]=b:c=c[d]?c[d]:c[d]={}}
function w(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function v(a){return a!==h}function x(a){return a!=k}function aa(a){var b=w(a);return"array"==b||"object"==b&&"number"==typeof a.length}function y(a){return"string"==typeof a}function ba(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}var z="closure_uid_"+(1E9*Math.random()>>>0),ca=0;function da(a,b,c){return a.call.apply(a.bind,arguments)}
function ea(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function A(a,b,c){A=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?da:ea;return A.apply(k,arguments)}var fa=Date.now||function(){return+new Date};
function B(a,b){function c(){}c.prototype=b.prototype;a.f=b.prototype;a.prototype=new c};function ga(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function ha(a){if(!ia.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ja,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(ka,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(la,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(ma,"&quot;"));return a}var ja=/&/g,ka=/</g,la=/>/g,ma=/\"/g,ia=/[&<>\"]/;var C,na,oa,pa;function qa(){return s.navigator?s.navigator.userAgent:k}pa=oa=na=C=n;var ra;if(ra=qa()){var sa=s.navigator;C=0==ra.lastIndexOf("Opera",0);na=!C&&(-1!=ra.indexOf("MSIE")||-1!=ra.indexOf("Trident"));oa=!C&&-1!=ra.indexOf("WebKit");pa=!C&&!oa&&!na&&"Gecko"==sa.product}var ta=C,D=na,ua=pa,va=oa;function wa(){var a=s.document;return a?a.documentMode:h}var xa;
a:{var ya="",za;if(ta&&s.opera)var Aa=s.opera.version,ya="function"==typeof Aa?Aa():Aa;else if(ua?za=/rv\:([^\);]+)(\)|;)/:D?za=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:va&&(za=/WebKit\/(\S+)/),za)var Ba=za.exec(qa()),ya=Ba?Ba[1]:"";if(D){var Ca=wa();if(Ca>parseFloat(ya)){xa=String(Ca);break a}}xa=ya}var Da={};
function E(a){var b;if(!(b=Da[a])){b=0;for(var c=ga(String(xa)).split("."),d=ga(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",i=d[f]||"",l=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var t=l.exec(g)||["","",""],m=r.exec(i)||["","",""];if(0==t[0].length&&0==m[0].length)break;b=((0==t[1].length?0:parseInt(t[1],10))<(0==m[1].length?0:parseInt(m[1],10))?-1:(0==t[1].length?0:parseInt(t[1],10))>(0==m[1].length?0:parseInt(m[1],10))?1:0)||((0==t[2].length)<
(0==m[2].length)?-1:(0==t[2].length)>(0==m[2].length)?1:0)||(t[2]<m[2]?-1:t[2]>m[2]?1:0)}while(0==b)}b=Da[a]=0<=b}return b}var Ea=s.document,Fa=!Ea||!D?h:wa()||("CSS1Compat"==Ea.compatMode?parseInt(xa,10):5);function Ga(a,b){for(var c in a)b.call(h,a[c],c,a)}function Ha(a){var b=0,c;for(c in a)b++;return b}function Ia(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}var Ja="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Ka(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Ja.length;f++)c=Ja[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var F=Array.prototype,La=F.indexOf?function(a,b,c){return F.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(y(a))return!y(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ma=F.forEach?function(a,b,c){F.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=y(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Na=F.map?function(a,b,c){return F.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=y(a)?a.split(""):
a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};function Oa(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Pa(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if("array"==w(d)||(e=aa(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var f=a.length,g=d.length,i=0;i<g;i++)a[f+i]=d[i];else a.push(d)}}function Qa(a,b,c,d){F.splice.apply(a,Ra(arguments,1))}
function Ra(a,b,c){return 2>=arguments.length?F.slice.call(a,b):F.slice.call(a,b,c)};function G(a,b){this.width=a;this.height=b}G.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};G.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};G.prototype.scale=function(a,b){this.width*=a;this.height*="number"==typeof b?b:a;return this};function Sa(a,b){var c;c=a.className;c=y(c)&&c.match(/\S+/g)||[];for(var d=Ra(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=La(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};var Ta=!D||D&&9<=Fa;!ua&&!D||D&&D&&9<=Fa||ua&&E("1.9.1");var Ua=D&&!E("9");function Va(a,b){Ga(b,function(c,b){"style"==b?a.style.cssText=c:"class"==b?a.className=c:"for"==b?a.htmlFor=c:b in Wa?a.setAttribute(Wa[b],c):0==b.lastIndexOf("aria-",0)||0==b.lastIndexOf("data-",0)?a.setAttribute(b,c):a[b]=c})}var Wa={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function Xa(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Ta&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ha(g.name),'"');if(g.type){f.push(' type="',ha(g.type),'"');var i={};Ka(i,g);delete i.type;g=i}f.push(">");f=f.join("")}f=e.createElement(f);g&&(y(g)?f.className=g:"array"==w(g)?Sa.apply(k,[f].concat(g)):Va(f,g));2<d.length&&Ya(e,f,d);return f}
function Ya(a,b,c){function d(c){c&&b.appendChild(y(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];aa(f)&&!(ba(f)&&0<f.nodeType)?Ma(Za(f)?Oa(f):f,d):d(f)}}var $a={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},ab={IMG:" ",BR:"\n"};
function bb(a){if(Ua&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];cb(a,b,j);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Ua||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}
function cb(a,b,c){if(!(a.nodeName in $a))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in ab)b.push(ab[a.nodeName]);else for(a=a.firstChild;a;)cb(a,b,c),a=a.nextSibling}function Za(a){if(a&&"number"==typeof a.length){if(ba(a))return"function"==typeof a.item||"string"==typeof a.item;if("function"==w(a))return"function"==typeof a.item}return n};D&&E("9");!va||E("528");ua&&E("1.9b")||D&&E("8")||ta&&E("9.5")||va&&E("528");ua&&!E("8")||D&&E("9");function db(a){if("function"!=w(a))if(a&&"function"==typeof a.handleEvent)a=A(a.handleEvent,a);else throw Error("Invalid listener argument");s.setTimeout(a,10)};function eb(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function fb(a){this.da=a}fb.prototype.serialize=function(a){var b=[];gb(this,a,b);return b.join("")};
function gb(a,b,c){switch(typeof b){case "string":hb(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==k){c.push("null");break}if("array"==w(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],gb(a,a.da?a.da.call(b,String(f),e):e,c),e=",";c.push("]");break}c.push("{");d="";for(f in b)Object.prototype.hasOwnProperty.call(b,f)&&(e=b[f],"function"!=typeof e&&(c.push(d),hb(f,
c),c.push(":"),gb(a,a.da?a.da.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var ib={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},jb=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function hb(a,b){b.push('"',a.replace(jb,function(a){if(a in ib)return ib[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return ib[a]=e+b.toString(16)}),'"')};function kb(a,b){this.d=a;this.qc=b||[]}u("iSpring.ios.mobile.MobileAppCommand",kb,h);kb.prototype.id=function(){return this[z]||(this[z]=++ca)};function H(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}H.prototype.BYTES_PER_ELEMENT=8;H.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};H.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{H.BYTES_PER_ELEMENT=8}catch(lb){}H.prototype.BYTES_PER_ELEMENT=H.prototype.BYTES_PER_ELEMENT;H.prototype.set=H.prototype.set;H.prototype.toString=H.prototype.toString;u("Float64Array",H,h)};function I(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}I.prototype.BYTES_PER_ELEMENT=4;I.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};I.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(I.BYTES_PER_ELEMENT=4,I.prototype.BYTES_PER_ELEMENT=I.prototype.BYTES_PER_ELEMENT,I.prototype.set=I.prototype.set,I.prototype.toString=I.prototype.toString,u("Float32Array",I,h));new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function mb(){var a;var b=window.location.search.substr(1);if(b){a={};for(var b=b.split("&"),c=0;c<b.length;++c){var d=b[c].split("=");if(2==d.length){var e=decodeURIComponent(d[0].replace(/\+/g," ")),d=decodeURIComponent(d[1].replace(/\+/g," ")),e=e.toLowerCase();a[e]=d}}}else a={};return a};function nb(a,b,c){"array"==w(b)||(b=[b]);var d,e,f=n;Ma(b,function(b){var i=a.indexOf(b,c);if(0<=i&&(!v(d)||i<d))d=i,e=b,f=j});return f?new ob(e,d):k}function ob(a,b){this.sb=a;this.ca=b};var pb;pb=n;var qb=qa();qb&&-1!=qb.indexOf("Firefox")&&(pb=j);var rb=pb;var sb;var tb=mb().user_agent;sb=tb?tb:qa()||"";var ub=mb().small_screen,vb=-1!=sb.toLowerCase().indexOf("chrome"),wb=-1!=sb.toLowerCase().indexOf("android"),xb,yb=sb.toLowerCase();xb=-1!=yb.indexOf("android")||-1!=yb.indexOf("mobile")||-1!=yb.indexOf("touch")||ub;var zb=D&&-1!=sb.toLowerCase().indexOf("touch"),Ab=wb&&!vb&&!rb&&!ta;
if(!ub&&!window._ispringFullsizeSkin){var Bb=ub?new G(document.documentElement.clientWidth,document.documentElement.clientHeight):zb?new G(screen.width*screen.deviceXDPI/screen.logicalXDPI,screen.height*screen.deviceYDPI/screen.logicalYDPI):Ab?new G(screen.width/window.devicePixelRatio,screen.height/window.devicePixelRatio):!xb&&rb||D?new G(screen.width*window.devicePixelRatio,screen.height*window.devicePixelRatio):new G(screen.width,screen.height);Math.min(Bb.width,Bb.height)};function J(){}u("ispring.events.IEventDispatcher",J,h);J.prototype.addHandler=function(){};J.prototype.addHandler=J.prototype.addHandler;J.prototype.removeHandler=function(){};J.prototype.removeHandler=J.prototype.removeHandler;function Cb(){this.Oa=[];this.n=[]}Cb.prototype.push=function(a,b){if(!(b in this.n)){this.n[b]=[];var c=this.Oa,d;d=0;for(var e=c.length,f;d<e;){var g=d+e>>1,i;i=b>c[g]?1:b<c[g]?-1:0;0<i?d=g+1:(e=g,f=!i)}d=f?d:~d;0>d&&Qa(c,-(d+1),0,b)}this.n[b].push(a)};function Db(a){var b=[],c=a.n;a=a.Oa;for(var d=0;d<a.length;++d)Pa(b,c[a[d]]);return b};function K(){this.p=new Cb}K.prototype.addHandler=function(a,b,c){this.p.push({wa:a,va:b},c||0)};K.prototype.addHandler=K.prototype.addHandler;K.prototype.removeHandler=function(a,b,c){c=c||0;var d=c in this.p.n?this.p.n[c]:[],e=d.length,f=0;for(;f<e;++f){var g=d[f];if(g.wa==a&&g.va==b){a=this.p;c in a.n&&F.splice.call(a.n[c],f,1);break}}};K.prototype.removeHandler=K.prototype.removeHandler;
K.prototype.qb=function(a,b,c){c=c||0;c=c in this.p.n?this.p.n[c]:[];for(var d=c.length,e=0;e<d;++e){var f=c[e];if(f.wa==a&&f.va==b)return j}return n};K.prototype.hasHandler=K.prototype.qb;K.prototype.Va=function(a){for(var b=Db(this.p),c=b.length,d=0;d<c;++d){var e=b[d];if(-1!=La(Db(this.p),e))try{e.wa.apply(e.va,arguments)}catch(f){(window._ispringDebug==j||"1"==mb().isdebug)&&alert(f)}}};K.prototype.dispatch=K.prototype.Va;function L(a,b){this.N=a;this.t=b}L.prototype.id=p("N");L.prototype.description=p("t");function M(){this.F=[]}M.prototype.count=function(){return this.F.length};function N(a,b){a.F.push(b)}M.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.F[a]};function O(){this.F=new M}O.prototype.choices=p("F");function Eb(a,b,c,d){for(var e=d?",":"[,]",f=d?".":"[.]",g=[],i=0;i<a.count();++i){var l=a.getMatch(i),r=l.premise(),l=l.response(),t=b.getChoiceIndex(r),m=c.getChoiceIndex(l),r=d?Fb(t,j):t+"_"+r.textRange().text(),l=d?Fb(m,n):m+"_"+l.textRange().text(),r=P(r)+f+P(l);g.push(r)}return g.join(e)}function Gb(a,b,c){for(var d=c?",":"[,]",e=[],f=0;f<b.count();++f){var g=b.getChoice(f),i=g.textRange().text(),g=a.getChoiceIndex(g);e.push(P(c?Fb(g,j):g+"_"+i))}return e.join(d)}
function P(a){a=ga(a);return a=a.replace(/[^\w-]/g,"_")}function Fb(a,b){a=b?a:36-a-1;return 0<=a&&36>a?"0123456789abcdefghijklmnopqrstuvwxyz"[a]:"0"};function Hb(a){this.N=a}q=Hb.prototype;q.t="";q.e=k;q.c=k;q.P="unanticipated";q.Pa=0;q.Aa=k;q.u=k;q.ta=k;q.k=k;q.id=p("N");q.type=p("d");q.description=p("t");q.s=p("e");function Ib(a,b){a.e=b}q.D=p("c");function Jb(a,b){a.c=b}q.result=p("P");q.score=p("Pa");q.T=function(a){this.Pa=a};q.awardedScore=p("Aa");q.duration=p("u");q.ea=function(a){this.u=a};q.za=p("ta");function Kb(){}Kb.prototype.create=function(a){if(!a.submitted())return k;var b=a.slide().id(),b=new Hb(P(b));this.a(b,a);return b};Kb.prototype.a=function(a,b){var c=b.slide().description().text();a.t=c;b.visited()&&(a.ea(b.viewDuration()),c=b.firstVisitTime(),a.ta=c)};function Lb(a){return P(a)};function Q(){}B(Q,Kb);Q.prototype.a=function(a,b){Q.f.a.call(this,a,b);a.P="neutral"};function Mb(a){this.l=a}B(Mb,Q);Mb.prototype.l=n;Mb.prototype.a=function(a,b){Mb.f.a.call(this,a,b);a.d="sequencing";var c=b.slide().items(),d=Gb(c,b.items(),this.l);a.e=d;a.c=[d];c=this.j(c);a.k=c};Mb.prototype.j=function(a){for(var b=new O,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();N(b.choices(),new L(P(c+"_"+d),d))}return b};var R={kc:"slidePool",vb:"authorizationForm",Kb:"informationSlide",Mb:"introSlide",fc:"resultSlide",Ib:"hotspotQuestion",Qb:"likertScaleQuestion",oc:"wordBankQuestion",Cb:"essayQuestion",mc:"typeInQuestion",jc:"shortAnswerQuestion",Db:"fillInTheBlankQuestion",Eb:"fillInTheBlankSurveyQuestion",Zb:"numericQuestion",$b:"numericSurveyQuestion",ic:"sequenceQuestion",ec:"rankingQuestion",nc:"whichWordQuestion",Ub:"multipleChoiceTextQuestion",Vb:"multipleChoiceTextSurveyQuestion",Tb:"multipleChoiceQuestion",
Wb:"multipleResponseQuestion",cc:"pickOneQuestion",bc:"pickManyQuestion",lc:"trueFalseQuestion",pc:"yesNoQuestion",Rb:"matchingQuestion",Sb:"matchingSurveyQuestion"};u("ispring.quiz.slides.SlideType",R,h);function Nb(a){return"slidePool"!=a&&"informationSlide"!=a&&"introSlide"!=a&&"resultSlide"!=a}u("SLIDE_POOL","slidePool",R);u("INFORMATION_SLIDE","informationSlide",R);u("INTRO_SLIDE","introSlide",R);u("HOTSPOT_QUESTION","hotspotQuestion",R);u("LIKERT_SCALE_QUESTION","likertScaleQuestion",R);
u("WORD_BANK_QUESTION","wordBankQuestion",R);u("RESULT_SLIDE","resultSlide",R);u("ESSAY_QUESTION","essayQuestion",R);u("TYPE_IN_QUESTION","typeInQuestion",R);u("SHORT_ANSWER_QUESTION","shortAnswerQuestion",R);u("FILL_IN_THE_BLANK_QUESTION","fillInTheBlankQuestion",R);u("FILL_IN_THE_BLANK_SURVEY_QUESTION","fillInTheBlankSurveyQuestion",R);u("NUMERIC_QUESTION","numericQuestion",R);u("NUMERIC_SURVEY_QUESTION","numericSurveyQuestion",R);u("SEQUENCE_QUESTION","sequenceQuestion",R);
u("RANKING_QUESTION","rankingQuestion",R);u("WHICH_WORD_QUESTION","whichWordQuestion",R);u("MULTIPLE_CHOICE_TEXT_QUESTION","multipleChoiceTextQuestion",R);u("MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION","multipleChoiceTextSurveyQuestion",R);u("MULTIPLE_CHOICE_QUESTION","multipleChoiceQuestion",R);u("MULTIPLE_RESPONSE_QUESTION","multipleResponseQuestion",R);u("PICK_ONE_QUESTION","pickOneQuestion",R);u("PICK_MANY_QUESTION","pickManyQuestion",R);u("TRUE_FALSE_QUESTION","trueFalseQuestion",R);
u("YES_NO_QUESTION","yesNoQuestion",R);u("MATCHING_QUESTION","matchingQuestion",R);u("MATCHING_SURVEY_QUESTION","matchingSurveyQuestion",R);var Ob={yb:"correct",ac:"partiallyCorrect",Jb:"incorrect",Yb:"notAnswered"};u("ispring.quiz.session.slides.questions.graded.review.GradedQuestionStatus",Ob,h);u("CORRECT","correct",Ob);u("PARTIALLY_CORRECT","partiallyCorrect",Ob);u("INCORRECT","incorrect",Ob);u("NOT_ANSWERED","notAnswered",Ob);function S(){}B(S,Kb);S.prototype.a=function(a,b){S.f.a.call(this,a,b);var c=b.slide();a.T(c.maxScore());if(c=b.review()){var d=c.awardedScore();a.Aa=d;d="unanticipated";switch(c.status()){case "correct":d="correct";break;case "incorrect":d="incorrect";break;case "partiallyCorrect":d="partially"}a.P=d}};var T={Bb:"equal",Ab:"notEqual",Gb:"greaterThan",Ob:"lessThan",Hb:"greaterThanOrEqual",Pb:"lessThanOrEqual",wb:"between"};u("ispring.quiz.slides.questions.graded.answers.numeric.ComparisonOperation",T,h);u("EQUALS","equal",T);u("DIFFERS","notEqual",T);u("GREATER_THAN","greaterThan",T);u("LESS_THAN","lessThan",T);u("GREATER_THAN_OR_EQUALS","greaterThanOrEqual",T);u("LESS_THAN_OR_EQUALS","lessThanOrEqual",T);u("BETWEEN","between",T);function Pb(){}B(Pb,S);Pb.prototype.a=function(a,b){Pb.f.a.call(this,a,b);a.d="fill-in";var c=b.slide(),d=b.initiated()?b.getAnswer().toString():"",c=this.o(c.answers());a.e=d;a.c=[c]};
Pb.prototype.o=function(a){for(var b=[],c=0;c<a.count();++c){var d="",e=a.getAnswer(c),f=e.comparisonOperation();if("between"==f)d=e,d="between "+d.leftOperand()+" and "+d.rightOperand();else switch(f){case "notEqual":d="not equal to "+e.operand();break;case "equal":d="equal to "+e.operand();break;case "greaterThan":d="greater than "+e.operand();break;case "greaterThanOrEqual":d="greater than or equal to "+e.operand();break;case "lessThan":d="less than "+e.operand();break;case "lessThanOrEqual":d=
"less than or equal to "+e.operand()}b.push(d)}return b.join("[,]")};function Qb(){}B(Qb,Q);Qb.prototype.a=function(a,b){Qb.f.a.call(this,a,b);a.d="other";var c=this.la(b.blanks());a.e=c;a.c=[c]};Qb.prototype.la=function(a){for(var b=[],c=0;c<a.count();++c)b.push(a.getSection(c).answer());return b.join("[,]")};function Rb(a){this.l=a}B(Rb,S);Rb.prototype.l=n;Rb.prototype.a=function(a,b){Rb.f.a.call(this,a,b);a.d="sequencing";var c=b.slide().items(),d=Gb(c,b.items(),this.l),e=Gb(c,c,this.l);a.e=d;a.c=[e];c=this.j(c);a.k=c};Rb.prototype.j=function(a){for(var b=new O,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();N(b.choices(),new L(P(c+"_"+d),d))}return b};function Sb(){}B(Sb,S);Sb.prototype.a=function(a,b){Sb.f.a.call(this,a,b);a.d="other";for(var c=[],d=[],e=b.placeholders(),f=0;f<e.count();++f){var g=e.getSection(f),i=g.answer();i&&(c.push(i.textRange().text()),g=g.section().answers(),d.push(g.getChoice(0).textRange().text()))}d=d.join("[,]");a.e=c.join("[,]");a.c=[d]};function Tb(){}B(Tb,Q);Tb.prototype.a=function(a,b){Tb.f.a.call(this,a,b);a.d="fill-in";var c=b.initiated()?b.answer().toString():"";a.e=c;a.c=[c]};function Ub(){this.F=new M;this.Ba=[]}B(Ub,O);function U(){}B(U,Q);U.prototype.a=function(a,b){U.f.a.call(this,a,b);a.d="choice";var c=b.slide().choices(),d=b.choices(),e=this.ka(c,d);a.e=e;a.c=[e];c=this.j(c,d);a.k=c};
U.prototype.j=function(a,b){for(var c=new Ub,d=0;d<a.count();++d){var e=a.getChoice(d),f;a:{f=e;for(var g=0;g<b.count();++g){var i=b.getChoiceState(g);if(i.choice()===f){f=i;break a}}throw Error("can't find choice state");}g=e.textRange().text();g=new L(this.L(f,d),g);N(c.choices(),g);e=e.customAnswerEnabled()?f.customAnswer():"";c.Ba[d]=e}return c};
U.prototype.ka=function(a,b){for(var c=[],d=0;d<b.count();++d){var e=b.getChoiceState(d);if(e.selected()){var f=a.getChoiceIndex(e.choice()),e=this.L(e,f);c.push(e)}}return c.join("[,]")};U.prototype.L=function(a,b){var c=a.customizableChoice(),d=c.textRange().text(),d=b+"_"+d;c.customAnswerEnabled()&&(c=a.customAnswer(),d+=c?"_"+c:"");return P(d)};function Vb(){this.Qa=new M;this.Sa=new M};function Wb(a){this.l=a}B(Wb,Q);Wb.prototype.a=function(a,b){Wb.f.a.call(this,a,b);a.d="matching";var c=b.slide(),d=Eb(b.matches(),c.premises(),c.responses(),this.l);a.e=d;a.c=[d];c=this.ga(c);a.k=c};Wb.prototype.ga=function(a){var b=new Vb,c=a.premises();a=a.responses();for(var d=0;d<c.count();++d){var e=c.getChoice(d).textRange().text(),f=a.getChoice(d).textRange().text();N(b.Qa,new L(P(d+"_"+e),e));N(b.Sa,new L(P(d+"_"+f),f))}return b};function V(){}B(V,S);V.prototype.a=function(a,b){V.f.a.call(this,a,b);a.d="choice";var c=b.slide().responses(),d=this.M(c,b.responses()),e=this.o(c);a.e=d;a.c=[e];c=this.j(c);a.k=c};V.prototype.j=function(a){for(var b=new O,c=0;c<a.count();++c){var d=a.getGradedChoice(c).textRange().text();N(b.choices(),new L(P(c+"_"+d),d))}return b};
V.prototype.M=function(a,b){for(var c=[],d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.gradedChoice(),g=f.textRange().text();e.selected()&&c.push(Lb(a.getChoiceIndex(f)+"_"+g))}return c.join("[,]")};V.prototype.o=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getGradedChoice(c);d.correct()&&b.push(Lb(c+"_"+d.textRange().text()))}return b.join("[,]")};function Xb(){}B(Xb,S);Xb.prototype.a=function(a,b){Xb.f.a.call(this,a,b);a.d="other";for(var c=[],d=[],e=b.choices(),f=0;f<e.count();++f){var g=e.getSection(f),i=g.choices(),g=g.section().choices();this.fa(i,c);for(var i=g,g=d,l=0;l<i.count();++l){var r=i.getGradedChoice(l);r.correct()&&g.push(r.textRange().text())}}a.e=c.join("[,]");a.c=[d.join("[,]")]};
Xb.prototype.fa=function(a,b){for(var c=0;c<a.count();++c){var d=a.getChoiceState(c);if(d.selected()){b.push(d.gradedChoice().textRange().text());break}}};function W(){}B(W,S);W.prototype.a=function(a,b){W.f.a.call(this,a,b);a.d="choice";var c=b.slide().choices(),d=this.M(c,b.choices()),e=this.o(c);a.e=d;a.c=[e];c=this.j(c);a.k=c};W.prototype.j=function(a){for(var b=new O,c=0;c<a.count();++c){var d=a.getGradedChoice(c).textRange().text();N(b.choices(),new L(P(c+"_"+d),d))}return b};
W.prototype.M=function(a,b){for(var c="",d=0;d<b.count();++d){var e=b.getChoiceState(d);if(e.selected()){c=a.getChoiceIndex(e.gradedChoice())+"_"+e.gradedChoice().textRange().text();break}}return P(c)};W.prototype.o=function(a){for(var b="",c=0;c<a.count();++c){var d=a.getGradedChoice(c);if(d.correct()){b=c+"_"+d.textRange().text();break}}return P(b)};function Yb(){}B(Yb,Q);Yb.prototype.a=function(a,b){Yb.f.a.call(this,a,b);a.d="fill-in";var c=b.answer();a.e=c;c=[b.answer()];a.c=c};function X(){}B(X,Q);X.prototype.a=function(a,b){X.f.a.call(this,a,b);a.d="choice";var c=b.slide().choices(),d=b.choices(),e=this.ka(c,d);a.e=e;a.c=[e];c=this.j(c,d);a.k=c};
X.prototype.j=function(a,b){for(var c=new Ub,d=0;d<a.count();++d){var e=a.getChoice(d),f;a:{f=e;for(var g=0;g<b.count();++g){var i=b.getChoiceState(g);if(i.choice()===f){f=i;break a}}throw Error("can't find choice state");}g=e.textRange().text();g=new L(this.L(f,d),g);N(c.choices(),g);e=e.customAnswerEnabled()?f.customAnswer():"";c.Ba[d]=e}return c};X.prototype.ka=function(a,b){for(var c=0;c<b.count();++c){var d=b.getChoiceState(c);if(d.selected())return c=a.getChoiceIndex(d.choice()),this.L(d,c)}return P("")};
X.prototype.L=function(a,b){var c=a.customizableChoice(),d=c.textRange().text(),d=b+"_"+d;c.customAnswerEnabled()&&(c=a.customAnswer(),d+=c?"_"+c:"");return P(d)};function Zb(){}B(Zb,X);function $b(a){this.qa=a}B($b,S);$b.prototype.a=function(a,b){$b.f.a.call(this,a,b);a.d="fill-in";var c=b.slide(),d=this.o(c.answers()),e=b.answer();a.e=e;a.c=[d];if(this.qa){d=[];for(e=0;e<c.answers().count();++e){var f=c.answers().getAnswer(e);d.push(f.text())}a.c=d}};$b.prototype.o=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getAnswer(c);b.push(d.text())}return b.join("[,]")};function ac(){}B(ac,Q);ac.prototype.a=function(a,b){ac.f.a.call(this,a,b);a.d="other";for(var c=[],d=b.choices(),e=0;e<d.count();++e)this.fa(d.getSection(e).choices(),c);c=c.join("[,]");a.e=c;a.c=[c]};ac.prototype.fa=function(a,b){for(var c=0;c<a.count();++c){var d=a.getChoiceState(c);if(d.selected()){b.push(d.choice().textRange().text());break}}};function bc(){}B(bc,S);bc.prototype.a=function(a,b){bc.f.a.call(this,a,b);a.d="other";var c=this.la(b.blanks());a.e=c.s;a.c=[c.D]};bc.prototype.la=function(a){for(var b=[],c=[],d=0;d<a.count();++d){var e=[],f=a.getSection(d),g=f.section().answers();b.push(f.answer());for(f=0;f<g.count();++f)e.push(g.getAnswer(f).text());c.push(e.join("[,]"))}return{s:b.join("[,]"),D:c.join("[.]")}};function cc(){}B(cc,S);cc.prototype.a=function(a,b){cc.f.a.call(this,a,b);a.d="other";var c=b.slide(),d=this.M(b.points()),c=this.o(c.hotAreas());a.e=d;a.c=[c]};cc.prototype.M=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getPoint(c);b.push(d.x()+"_"+d.y())}return b.join("[,]")};cc.prototype.o=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getHotArea(c);b.push(d.type()+"_"+d.left()+"_"+d.top()+"_"+d.width()+"_"+d.height())}return b.join("[,]")};function dc(){}B(dc,Q);dc.prototype.a=function(a,b){dc.f.a.call(this,a,b);a.d="long-fill-in";var c=b.answer();a.e=c;c=[b.answer()];a.c=c};function ec(a){this.l=a}B(ec,S);ec.prototype.l=n;ec.prototype.a=function(a,b){ec.f.a.call(this,a,b);a.d="matching";var c=b.slide(),d=Eb(b.matches(),c.premises(),c.responses(),this.l),e=Eb(c.matches(),c.premises(),c.responses(),this.l);a.e=d;a.c=[e];c=this.ga(c);a.k=c};ec.prototype.ga=function(a){var b=new Vb;a=a.matches();for(var c=0;c<a.count();++c){var d=a.getMatch(c),e=d.premise().textRange().text(),d=d.response().textRange().text();N(b.Qa,new L(P(c+"_"+e),e));N(b.Sa,new L(P(c+"_"+d),d))}return b};function fc(){}B(fc,Q);fc.prototype.a=function(a,b){fc.f.a.call(this,a,b);a.d="other";for(var c=[],d=b.placeholders(),e=0;e<d.count();++e){var f=d.getSection(e).answer();f&&c.push(f.textRange().text())}c=c.join("[,]");a.e=c;a.c=[c]};function gc(){}B(gc,Q);gc.prototype.a=function(a,b){gc.f.a.call(this,a,b);a.d="choice";for(var c=b.slide(),d=b.statements(),e=d.count(),f=[],c=c.statements(),g=0;g<e;++g){var i=d.getStatementState(g),l=i.scale(),i=i.statement();l&&f.push(Lb(c.getChoiceIndex(i)+"_"+l.textRange().text()))}d=f.join("[,]");a.e=d;a.c=[d];d=this.j(c);a.k=d};gc.prototype.j=function(a){for(var b=new O,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();N(b.choices(),new L(P(c+"_"+d),d))}return b};function hc(a){this.qa=a}B(hc,W);hc.prototype.a=function(a,b){hc.f.a.call(this,a,b);if(this.qa){a.d="true-false";for(var c=b.slide().choices(),d=b.choices(),e=c.getGradedChoice(0).correct()?"t":"f",f="t"==e?"f":"t",c=c.getGradedChoice(0).correct()?c.getGradedChoice(0).id():c.getGradedChoice(1).id(),g=k,i=0;2>i;++i){var l=d.getChoiceState(i);if(l.selected()){g=l.choice().id()==c?e:f;break}}a.e=g;a.c=[e]}};function ic(a,b){var c="1.2"==b||"aicc"==b;switch(a){case "essayQuestion":return new dc;case "likertScaleQuestion":return new gc;case "hotspotQuestion":return new cc;case "fillInTheBlankQuestion":return new bc;case "wordBankQuestion":return new Sb;case "typeInQuestion":return new $b(c);case "fillInTheBlankSurveyQuestion":return new Qb;case "shortAnswerQuestion":return new Yb;case "whichWordQuestion":return new fc;case "numericQuestion":return new Pb;case "multipleChoiceQuestion":return new W;case "multipleResponseQuestion":return new V;
case "numericSurveyQuestion":return new Tb;case "multipleChoiceTextQuestion":return new Xb;case "sequenceQuestion":return new Rb(c);case "multipleChoiceTextSurveyQuestion":return new ac;case "rankingQuestion":return new Mb(c);case "pickManyQuestion":return new U;case "matchingQuestion":return new ec(c);case "matchingSurveyQuestion":return new Wb(c);case "pickOneQuestion":return new X;case "trueFalseQuestion":return new hc(c);case "yesNoQuestion":return new Zb}return k};var jc={dc:"prompt",tb:"always",Xb:"never"};u("ispring.presenter.presentation.settings.PresentationResumeMode",jc,h);u("PROMPT_TO_RESUME","prompt",jc);u("ALWAYS_RESUME","always",jc);u("NEVER_RESUME","never",jc);function kc(a){for(var b=0,c=0;c<a.length;++c)b+=a[c];return b};function lc(a,b,c,d,e,f){this.A=a;this.lb=b;this.nb=e;this.gb=f;this.q={};for(a=0;a<c.length;++a)b=c[a],e=b[1],this.q[b[0]]=e,0<e&&++this.K;this.H={};for(a=0;a<d.length;++a)c=d[a],b=c[1],this.H[c[0]]=b,0<b&&++this.K}q=lc.prototype;q.K=0;q.slidesWeight=function(){return 0<this.A?this.lb:0};q.slidesToView=p("A");q.totalScore=p("nb");q.passingScore=p("gb");function mc(a,b,c){this.jb=a;this.ib=b;this.pa=c}
mc.prototype.create=function(){var a=0,b=[],c=this.jb,d=this.ib,e=new Hb(c.id()+"_"+a),a=a+1;e.d="choice";var f;if(x(c.message())){var g;a:if(g=c.message().text(),f="\r",0==g.length)g="";else{f!=k||(f="");var i=0,l="",r=g.length;do{var t=nb(g,["<p>","<p "],i);if(t&&t.ca>i){var i=g.substr(i,t.ca-i),m=Xa("DIV");m.innerHTML=i;l+=(m.textContent||m.innerText||bb(m))+f;i=t.ca}if(m=nb(g,["</p>","</p >"],i)){var t=m.ca+m.sb.length-i,ad=g.substr(i,t),m=Xa("DIV");m.innerHTML=ad;l+=(m.textContent||m.innerText||
bb(m))+f;i+=t}else{m=Xa("DIV");m.innerHTML=g.substr(i,r-i);g=l+(m.textContent||m.innerText||bb(m));break a}}while(i<r);g=l}e.t=g;f=c.message().replies();x(c.speech())&&0<c.speech().length&&(a=new Hb(c.id()+"_"+a),a.d="other",g=c.speech(),a.t=g,a.T(c.score()),a.P="neutral",nc(this,a),b.push(a))}else a=c.speech(),e.t=a,f=c.replies();0==f.count()&&(e.d="other");a=k;l=-1;g=[];for(r=0;r<f.count();r++)d!=k&&f.getReply(r)==d&&(l=r),g.push(oc(r+"_"+f.getReply(r).text()));d!=k&&(a=oc(l+"_"+d.text()));d=f;
f=new O;for(l=0;l<d.count();++l)r=d.getReply(l).text(),N(f.choices(),new L(oc(l+"_"+r),r));e.k=f;e.e=a;e.c=g;e.T(c.score());e.P="neutral";nc(this,e);b.push(e);return b};function nc(a,b){a.pa!=k&&(b.ta=new Date(a.pa),b.ea(fa()-a.pa))}function oc(a){a=ga(a);return a=a.replace(/[^\w-]/g,"_")};var pc={gc:"resumePlayback",Fb:"gotoSlide",zb:"delayStartup"};u("ispring.presenter.player.startup.PresentationStartup.Action",pc,h);u("RESUME_PLAYBACK","resumePlayback",pc);u("GOTO_SLIDE","gotoSlide",pc);u("DELAY_STARTUP","delayStartup",pc);var qc={Lb:"initializing",Nb:"inProgress",hc:"reviewing",xb:"completed",ub:"authorizating"};u("ispring.quiz.session.QuizState",qc,h);u("INITIALIZING","initializing",qc);u("IN_PROGRESS","inProgress",qc);u("REVIEWING","reviewing",qc);u("COMPLETED","completed",qc);u("AUTHORIZATING","authorizating",qc);function rc(a,b){this.sa=a;this.Ra=b;this.Ta=new K}q=rc.prototype;q.B=n;q.G=0;q.Z=0;q.$=-1;q.aa=0;q.ha=0;q.start=function(a){if(!this.B&&(this.aa=this.G=a||0,a=this.G>=this.sa,!a||!this.Ra))this.B=j,this.Z=fa(),a||(this.$=setTimeout(A(this.oa,this),this.sa-this.G))};q.oa=function(){this.Ra&&(this.stop(),this.aa=this.sa);this.Ta.Va()};q.stop=function(){this.B&&(this.B=n,0<this.$&&(clearTimeout(this.$),this.$=-1),this.ha=fa()-this.Z,this.aa=this.ha+this.G)};function sc(a,b,c,d,e){this.rc=a;this.ab=b;this.hb=c;this.yc=d;this.xc=e}sc.prototype.login=p("ab");sc.prototype.password=p("hb");function tc(a){this.tc=a};function uc(a){this.Ea=a}uc.prototype.pb=function(a,b,c){c=this.Ea.hasOwnProperty(a)?this.Ea[a]:c;if(v(c)){if(v(b)){a=this.Za;for(var d in b)if(b.hasOwnProperty(d)){var e=b[d];a&&(d=a(d));c=c.replace(RegExp(d,"g"),e)}}return c}return""};uc.prototype.getMessage=uc.prototype.pb;uc.prototype.Za=function(a){return"%"+a.toUpperCase()+"%"};function vc(a,b,c,d,e,f){this.sc=a;this.uc=b;this.$a=new uc(c);this.Xa=d;this.wc=e;this.vc=f}vc.prototype.i18n=p("$a");function wc(a,b){var c=window.iSpring.LMSAPI;switch(a){case "1.2":return new c.Scorm12Api(b);case "2004":return new c.Scorm2004Api(b);case "aicc":return new c.AiccApi(b);case "tincan":return new c.TinCanApi(b);default:throw Error("unknown api");}};function xc(){function a(a){try{for(var b=0;255>b;++b){if(a.API_1484_11)return a.API_1484_11;var e=a.parent;if(!e||a==e)break;a=e}}catch(f){}return k}var b=window;return a(b)||b.opener&&a(b.opener)}function yc(a){return"PT"+Math.floor(a/3600)+"H"+Math.floor(a%3600/60)+"M"+Math.floor(a%60)+"S"}function zc(a){return 10>a?"0"+a:a};function Ac(){}q=Ac.prototype;q.Wa=k;q.maxScore=k;q.awardedScore=k;q.ba=k;q.duration=k;function Bc(a,b,c,d){this.mb=a;this.ja=b;this.kb=c;this.bb=d}Bc.prototype.timeLimit=p("mb");Bc.prototype.message=p("bb");function Cc(a,b,c,d){this.ba=a;this.maxScore=v(b)?b:k;this.rb=v(c)?c:k;this.ya=v(d)?d:k}Cc.prototype.xa=function(){var a={};a[Dc]=this.ba;a[Ec]=this.maxScore;a[Fc]=this.rb;a[Gc]=this.ya;return a};var Dc="p",Ec="m",Fc="r",Gc="s";function Hc(){this.J=[];this.z={}}q=Hc.prototype;q.X=-1;q.u=0;q.Y=k;q.duration=p("u");q.ea=function(a){this.u=a};q.xa=function(){var a={};a[Ic]=this.u;a[Jc]=this.X;a[Kc]=this.J;a[Lc]=this.Y;var b={},c;for(c in this.z)b[c]=this.z[c].xa();a[Mc]=b;return a};var Jc="l",Kc="v",Ic="d",Lc="p",Mc="q";function Y(a,b,c){this.V=b;this.h=new Hc;this.I=new lc(c.slidesToView,c.slidesWeight,c.quizzes||{},c.scenarios||{},c.totalScore,c.passingScore);this.C=new Bc(1E3*c.timeLimit,c.exitOnTimeout,c.showMessageOnTimeout,c.timeoutMessage);this.m=new rc(this.C.timeLimit(),this.C.ja);a=c.tincan.auth;a=new vc("ispring://presentations/"+encodeURIComponent(c.presentationId),new tc(c.flags),c.tincan.i18n,c.scorm2004?c.scorm2004.edition:"",c.tincan.endPoint,new sc(a.type,a.login,a.password,a.name,a.email));this.R=
"never"!=c.resumeMode;this.i=wc(b,a);this.W={}}q=Y.prototype;q.Ca=n;q.O=k;q.U=n;q.g=k;q.w=k;q.ra=n;q.v=k;q.r=k;var Nc=q.Q=k;u("iSpring.LMS.create",function(a,b,c){return Nc=new Y(0,b,c)},h);u("iSpring.LMS.instance",function(){return Nc},h);Y.prototype.S=function(a){this.O=a;this.i.S(A(this.fb,this),A(this.eb,this))};Y.prototype.initialize=Y.prototype.S;
Y.prototype.fb=function(){var a=k,b,c=Oc(this.i.b,"cmi.suspend_data");if(c)a:{c=LZString.decompressFromBase64(c);try{b=eb(c);break a}catch(d){}b=k}else b=k;if(this.R&&b){a=new Hc;a.u=Ic in b?b[Ic]:0;a.X=Jc in b?b[Jc]:-1;a.J=Kc in b?b[Kc]:[];a.Y=Lc in b?b[Lc]:k;c={};b=Mc in b?b[Mc]:{};for(var e in b)c[e]=new Cc(b[e][Dc],b[e][Ec],b[e][Fc],b[e][Gc]);a.z=c;this.w=a;e=this.w.duration();if(this.C.ja&&e>=this.C.timeLimit()){alert("You have already exceeded available time for viewing this content.");try{var f=
document.getElementById("preloader");f&&f.parentNode.removeChild(f)}catch(g){}try{Ab||(window.open("","_self",""),window.close())}catch(i){}return}a=this.w.Y}this.Ca=j;this.O&&this.O(a)};Y.prototype.eb=function(){this.O&&this.O()};Y.prototype.start=function(a){this.Ca&&(this.g=a,this.U=j,this.i.start(a),a.startupEvent().addHandler(this.Ia,this),a.startupCompletedEvent().addHandler(this.Ja,this),a.closeWindowEvent().addHandler(this.Fa,this))};Y.prototype.start=Y.prototype.start;
Y.prototype.Ia=function(a){this.g.startupEvent().removeHandler(this.Ia,this);var b=this.R&&this.w?this.w.X:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.g.view().playbackController().firstSlideIndex(),a.setSlideIndex(b),a.setAction("gotoSlide"))};
Y.prototype.Ja=function(a,b){this.g.startupCompletedEvent().removeHandler(this.Ja,this);this.ra=j;"resumePlayback"==a&&this.w&&(this.h=this.w);var c=this.h.duration();this.m.B||(this.m.Ta.addHandler(this.oa,this),this.m.start(c));c=this.g.view().playbackController();c.slideChangeEvent().addHandler(this.ma,this);c=c.currentSlideIndex();c==b&&this.ma(c);this.R&&this.g.stateChangedEvent().addHandler(this.Ka,this)};Y.prototype.Ua=function(){this.U&&Pc(this,this.R&&(!this.ra||!Qc(this)))};
Y.prototype.closeLms=Y.prototype.Ua;function Pc(a){a.U&&(a.U=n,a.ra&&(a.m.stop(),Rc(a),a.g.view().playbackController().slideChangeEvent().removeHandler(a.ma,a)),a.g.closeWindowEvent().removeHandler(a.Fa,a),a.g.stateChangedEvent().removeHandler(a.Ka,a),a.i.suspend())}q=Y.prototype;
q.ma=function(a){if(this.v){var b=this.v;b.currentSessionChangedEvent().removeHandler(this.Ga,this);(b=b.currentSession())&&Sc(this,b);this.v=k}this.r&&(this.r.currentSessionChangedEvent().removeHandler(this.Ha,this),this.Q!=k&&Tc(this),this.r=k);b=this.g.view().playbackController();if(a in this.I.q){var c=this.v=b.quizPlayer(),d=(c[z]||(c[z]=++ca))+"";d in this.W||(this.W[d]=j,(d=new Uc(Oc(this.i.b,"cmi.learner_id"),Oc(this.i.b,"cmi.learner_name"),""))&&c.setUserInfo(d.id(),{USER_NAME:d.name(),USER_EMAIL:d.email()}));
c.currentSessionChangedEvent().addHandler(this.Ga,this);(c=c.currentSession())&&Vc(this,c)}a in this.I.H&&(b=this.r=b.scenarioPlayer(),c=(b[z]||(b[z]=++ca))+"",c in this.W||(this.W[c]=j),c=b.currentSession(),c!=k&&Wc(this,c),b.currentSessionChangedEvent().addHandler(this.Ha,this));b=this.h.J;0<=La(b,a)||b.push(a);this.h.X=a;Xc(this)};
function Rc(a){var b=a.m.B?fa()-a.m.Z+a.m.G:a.m.aa,c=a.m.B?fa()-a.m.Z:a.m.ha;a.h.ea(b);Z(a.i.b,"cmi.session_time",yc(c/1E3));a.R&&(b=a.g.persistState(),a.h.Y=b,b=a.i,a=(new fb(h)).serialize(a.h.xa()),a=LZString.compressToBase64(a),a.length<=("2"==b.b.ia?4E3:64E3)&&Z(b.b,"cmi.suspend_data",a))}
function Xc(a){var b=a.I;if(0<b.A||0<b.K){var c=Yc(a),d=b.totalScore()*c;a.i.T(c,0,b.totalScore(),d)}b=a.i;c=a.g.presentation().slides().count();Z(b.b,"cmi.progress_measure",a.h.J.length/c);b=a.i;c=a.I;c=!(0<c.A||0<c.K)?k:Yc(a)*c.totalScore()>=c.passingScore();d=Qc(a);d===k||Z(b.b,"cmi.completion_status",d?"completed":"incomplete");c===k?Z(b.b,"cmi.success_status","unknown"):Z(b.b,"cmi.success_status",c?"passed":"failed");Rc(a);a.i.ua()}
function Qc(a){var b=a.I,c=0<b.A?b.slidesToView():a.g.presentation().slides().count(),b=Ha(a.h.z)==Ha(b.q)+Ha(b.H);return a.h.J.length>=c&&b}function Yc(a){var b=a.I;if(!(0<b.A||0<b.K))return 0;var c=0,d=a.h.z,e;for(e in d)var f=d[e],g=parseInt(e,10),c=c+(f.ya!=k?f.ya:1)*((!(g in b.q)?k:b.q[g])!=k?!(g in b.q)?0:b.q[g]:!(g in b.H)?0:b.H[g]);d=0;0<b.A&&(d=a.g.presentation().slides().count(),d=a.h.J.length/d*b.slidesWeight());a=kc(Ia(b.q))+kc(Ia(b.H))+b.slidesWeight();return(c+d)/a}
q.Ha=function(){this.Q!=k&&Tc(this);var a=this.r.currentSession();Wc(this,a)};function Wc(a,b){a.Q=b;b.showTerminalSceneEvent().addHandler(a.Na,a);b.onReplySelectedEvent().addHandler(a.na,a)}function Tc(a){var b=a.Q;a.Q=k;b.showTerminalSceneEvent().removeHandler(a.Na,a);b.onReplySelectedEvent().removeHandler(a.na,a)}
q.Na=function(){var a=this.r.currentSession(),b=a.currentSceneState().scene();b!=k&&(x(b.speech())&&0<b.speech().length||x(b.message())&&0<b.message().text().length)&&this.na();a.scenario().evaluationSettings().enabled()?(b=a.currentSceneState().scene().score(),b=new Cc(b>=a.scenario().evaluationSettings().passingScore(),100,b,b/100)):b=new Cc(j);var c=this.g.view().playbackController().currentSlideIndex();this.h.z[c+""]=b;b=new Ac;b.duration=a.duration();b.Wa=0;b.maxScore=100;b.awardedScore=a.currentSceneState().scene().score();
a.scenario().evaluationSettings().enabled()&&(b.ba=b.awardedScore>=a.scenario().evaluationSettings().passingScore());a.scenario().id();a.scenario().title();Xc(this)};
q.na=function(a){var b=this.r.currentSession(),c=b.currentSceneState().scene();c!=k&&(a=(new mc(c,a)).create(),Ma(a,function(a){"tincan"!=this.V&&"choice"!=a.type()||("1.2"==this.V&&x(a.D())&&(x(a.s())&&Ib(a,(a.D().indexOf(a.s())+1).toString()),Jb(a,Na(a.D(),function(a,b){return(b+1).toString()},this))),b.scenario().id(),a.id(),a.type(),Zc(a,this.i.b))},this))};
function Vc(a,b){b.quizStateChangeEvent().addHandler(a.Ma,a);b.slidePoolState().forEach(function(b){var d=b.slide().type();Nb(d)&&b.submitEvent().addHandler(a.La,a)})}function Sc(a,b){b.quizStateChangeEvent().removeHandler(a.Ma,a);b.slidePoolState().forEach(function(b){var d=b.slide().type();Nb(d)&&b.submitEvent().removeHandler(a.La,a)})}q.Ga=function(a,b){b&&Sc(this,b);Vc(this,a)};
q.Ma=function(a){if("inProgress"==a){a=this.v.currentSession();var b="graded"==a.quiz().type()?new Cc(a.quizPassed(),a.maxScore(),a.awardedScore(),a.awardedPercent()):new Cc(j),c=this.g.view().playbackController().currentSlideIndex();this.h.z[c+""]=b;b=new Ac;b.duration=a.testDuration();"graded"==a.quiz().type()&&(b.Wa=0,b.maxScore=a.maxScore(),b.awardedScore=a.awardedScore(),b.ba=a.quizPassed());a.quiz().id();a.quiz().title();Xc(this)}};
q.La=function(a){var b=this.v.currentSession();if(a.initiated()&&(a=ic(a.slide().type(),this.V).create(a))){if("1.2"==this.V&&"choice"==a.type()){for(var c=[],d=0;d<a.k.choices().count();d++)c.push(a.k.choices().getChoice(d).id());Jb(a,Na(a.D(),function(a){return(c.indexOf(a)+1).toString()},this));Ib(a,(c.indexOf(a.s())+1).toString())}b.quiz().id();a.id();Zc(a,this.i.b)}};q.Fa=function(a){a.preventAction();this.Ua()};q.oa=function(){this.C.kb&&alert(this.C.message());this.C.ja&&Pc(this)};
q.Ka=function(a){a.actionPrevented()||(a.preventAction(),Rc(this))};function Uc(a,b,c){this.N=a;this.cb=b;this.Ya=c}Uc.prototype.id=p("N");Uc.prototype.name=p("cb");Uc.prototype.email=p("Ya");var $={id:"id",type:"type",score:"weighting",ob:"correct_responses.%INDEX%.pattern",s:"learner_response",description:"description",result:"result",duration:"latency",za:"timestamp"};
function Zc(a,b){for(var c=a.id(),d=-1,e=Oc(b,"cmi.interactions._count"),f=0;f<e;++f)if(Oc(b,"cmi.interactions."+f+".id")==c){d=f;break}if(0>d&&(c=parseInt(Oc(b,"cmi.interactions._count"),10),d=250<=c?-1:c,0>d))return;c="cmi.interactions."+d+".";Z(b,c+$.id,a.id());Z(b,c+$.type,a.type());Z(b,c+$.score,a.score());d=a.D()||[];for(e=0;e<d.length;++e)f=$.ob.replace("%INDEX%",e),Z(b,c+f,d[e]);(d=a.s())&&Z(b,c+$.s,d);Z(b,c+$.result,a.result());Z(b,c+$.description,a.description());d=a.duration();d===k||Z(b,
c+$.duration,yc(d/1E3));d=a.za();d!==k&&("number"==typeof d&&(d=new Date(d)),Z(b,c+$.za,d.getUTCFullYear()+"-"+zc(d.getUTCMonth()+1)+"-"+zc(d.getUTCDate())+"T"+zc(d.getUTCHours())+":"+zc(d.getUTCMinutes())+":"+zc(d.getUTCSeconds())+".0Z"))};function $c(a,b){this.b=a;this.ia=b}$c.prototype.S=function(){try{return bd(this.b.Initialize(""))}catch(a){}return n};$c.prototype.terminate=function(a){Z(this,"cmi.exit",a?"suspend":"normal");Z(this,"adl.nav.request","exitAll");try{return bd(this.b.Terminate(""))}catch(b){}return n};$c.prototype.ua=function(){try{return bd(this.b.Commit(""))}catch(a){}return n};function Oc(a,b){try{return a.b.GetValue(b)}catch(c){}return""}
function Z(a,b,c){if("number"==typeof c){var d;(d=v(d)?d:j)?c=parseFloat(c.toFixed(7))+"":(d=Math.pow(10,7),c=Math.round(c*d)/d+"");c+=""}try{a.b.SetValue(b,c)}catch(e){}}function bd(a){return"true"==a};function cd(){}u("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){var d;dd||(dd=new cd);d=dd;var e=d.Da[a];if(e==k)return"";delete d.Da[a];db(function(){if(b)e.onload(c);else e.onerror()});return"ok"},h);var dd=k;cd.prototype.Da={};function ed(a){this.ia=a.Xa||"2"}u("iSpring.LMSAPI.Scorm2004Api",ed,h);q=ed.prototype;q.b=k;q.S=function(a,b){var c=xc();(this.b=c?new $c(c,this.ia):k)&&this.b.S()?a&&a():b&&b()};q.start=function(){};q.ua=function(){this.b.ua()};q.suspend=function(){this.b.terminate(j)};q.terminate=function(){this.b.terminate(n)};q.T=function(a,b,c,d){Z(this.b,"cmi.score.scaled",a);Z(this.b,"cmi.score.min",b);Z(this.b,"cmi.score.max",c);Z(this.b,"cmi.score.raw",d)};})();
var LZString={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_f:String.fromCharCode,compressToBase64:function(e){if(e==null)return"";var t="";var n,r,i,s,o,u,a;var f=0;e=LZString.compress(e);while(f<e.length*2){if(f%2==0){n=e.charCodeAt(f/2)>>8;r=e.charCodeAt(f/2)&255;if(f/2+1<e.length)i=e.charCodeAt(f/2+1)>>8;else i=NaN}else{n=e.charCodeAt((f-1)/2)&255;if((f+1)/2<e.length){r=e.charCodeAt((f+1)/2)>>8;i=e.charCodeAt((f+1)/2)&255}else r=i=NaN}f+=3;s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+LZString._keyStr.charAt(s)+LZString._keyStr.charAt(o)+LZString._keyStr.charAt(u)+LZString._keyStr.charAt(a)}return t},decompressFromBase64:function(e){if(e==null)return"";var t="",n=0,r,i,s,o,u,a,f,l,c=0,h=LZString._f;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(c<e.length){u=LZString._keyStr.indexOf(e.charAt(c++));a=LZString._keyStr.indexOf(e.charAt(c++));f=LZString._keyStr.indexOf(e.charAt(c++));l=LZString._keyStr.indexOf(e.charAt(c++));i=u<<2|a>>4;s=(a&15)<<4|f>>2;o=(f&3)<<6|l;if(n%2==0){r=i<<8;if(f!=64){t+=h(r|s)}if(l!=64){r=o<<8}}else{t=t+h(r|i);if(f!=64){r=s<<8}if(l!=64){t+=h(r|o)}}n+=3}return LZString.decompress(t)},compressToUTF16:function(e){if(e==null)return"";var t="",n,r,i,s=0,o=LZString._f;e=LZString.compress(e);for(n=0;n<e.length;n++){r=e.charCodeAt(n);switch(s++){case 0:t+=o((r>>1)+32);i=(r&1)<<14;break;case 1:t+=o(i+(r>>2)+32);i=(r&3)<<13;break;case 2:t+=o(i+(r>>3)+32);i=(r&7)<<12;break;case 3:t+=o(i+(r>>4)+32);i=(r&15)<<11;break;case 4:t+=o(i+(r>>5)+32);i=(r&31)<<10;break;case 5:t+=o(i+(r>>6)+32);i=(r&63)<<9;break;case 6:t+=o(i+(r>>7)+32);i=(r&127)<<8;break;case 7:t+=o(i+(r>>8)+32);i=(r&255)<<7;break;case 8:t+=o(i+(r>>9)+32);i=(r&511)<<6;break;case 9:t+=o(i+(r>>10)+32);i=(r&1023)<<5;break;case 10:t+=o(i+(r>>11)+32);i=(r&2047)<<4;break;case 11:t+=o(i+(r>>12)+32);i=(r&4095)<<3;break;case 12:t+=o(i+(r>>13)+32);i=(r&8191)<<2;break;case 13:t+=o(i+(r>>14)+32);i=(r&16383)<<1;break;case 14:t+=o(i+(r>>15)+32,(r&32767)+32);s=0;break}}return t+o(i+32)},decompressFromUTF16:function(e){if(e==null)return"";var t="",n,r,i=0,s=0,o=LZString._f;while(s<e.length){r=e.charCodeAt(s)-32;switch(i++){case 0:n=r<<1;break;case 1:t+=o(n|r>>14);n=(r&16383)<<2;break;case 2:t+=o(n|r>>13);n=(r&8191)<<3;break;case 3:t+=o(n|r>>12);n=(r&4095)<<4;break;case 4:t+=o(n|r>>11);n=(r&2047)<<5;break;case 5:t+=o(n|r>>10);n=(r&1023)<<6;break;case 6:t+=o(n|r>>9);n=(r&511)<<7;break;case 7:t+=o(n|r>>8);n=(r&255)<<8;break;case 8:t+=o(n|r>>7);n=(r&127)<<9;break;case 9:t+=o(n|r>>6);n=(r&63)<<10;break;case 10:t+=o(n|r>>5);n=(r&31)<<11;break;case 11:t+=o(n|r>>4);n=(r&15)<<12;break;case 12:t+=o(n|r>>3);n=(r&7)<<13;break;case 13:t+=o(n|r>>2);n=(r&3)<<14;break;case 14:t+=o(n|r>>1);n=(r&1)<<15;break;case 15:t+=o(n|r);i=0;break}s++}return LZString.decompress(t)},compress:function(e){if(e==null)return"";var t,n,r={},i={},s="",o="",u="",a=2,f=3,l=2,c="",h=0,p=0,d,v=LZString._f;for(d=0;d<e.length;d+=1){s=e.charAt(d);if(!Object.prototype.hasOwnProperty.call(r,s)){r[s]=f++;i[s]=true}o=u+s;if(Object.prototype.hasOwnProperty.call(r,o)){u=o}else{if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}r[o]=f++;u=String(s)}}if(u!==""){if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}}n=2;for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}while(true){h=h<<1;if(p==15){c+=v(h);break}else p++}return c},decompress:function(e){if(e==null)return"";if(e=="")return null;var t=[],n,r=4,i=4,s=3,o="",u="",a,f,l,c,h,p,d,v=LZString._f,m={string:e,val:e.charCodeAt(0),position:32768,index:1};for(a=0;a<3;a+=1){t[a]=a}l=0;h=Math.pow(2,2);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(n=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 2:return""}t[3]=d;f=u=d;while(true){if(m.index>m.string.length){return""}l=0;h=Math.pow(2,s);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(d=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 2:return u}if(r==0){r=Math.pow(2,s);s++}if(t[d]){o=t[d]}else{if(d===i){o=f+f.charAt(0)}else{return null}}u+=o;t[i++]=f+o.charAt(0);r--;f=o;if(r==0){r=Math.pow(2,s);s++}}}};if(typeof module!=="undefined"&&module!=null){module.exports=LZString}
